# vim: filetype=neomuttrc
# muttrc file for account disroot
set realname = "Bzhilka"
set from = "bzhilka@disroot.org"
set sendmail = "msmtp -a disroot"
set folder = "${HOME}/.local/share/mail/disroot"
set header_cache = "${HOME}/.cache/mutt-wizard/disroot/headers"
set message_cachedir = "${HOME}/.cache/mutt-wizard/disroot/bodies"
set mbox_type = Maildir

bind index,pager gg noop
bind index,pager g noop
bind index,pager M noop
bind index,pager C noop
bind index gg first-entry
macro index O "<shell-escape>mailsync disroot<enter>" "run mbsync to sync disroot"
macro index o "<shell-escape>mbsync -c ~/.config/mbsync/config disroot:INBOX<enter>" "run mbsync to sync disroot:INBOX"

macro index,pager \cb "<pipe-message> urlscan<Enter>" "call urlscan to extract URLs out of a message"
macro attach,compose \cb "<pipe-entry> urlscan<Enter>" "call urlscan to extract URLs out of a message"

macro index,pager A \
  "<pipe-message>khard add-email<return>" \
  "add the sender email address to khard"

unmailboxes *

set spoolfile = "+INBOX"
set record = "+Sent"
set postponed = "+Drafts"
set trash = "+Trash"
mailboxes "=INBOX" "=INBOX.UN" "=INBOX.CS" "=INBOX.WS" "=Junk" "=Sent" "=Archive" "=Drafts" "=Trash"
macro index,pager gi "<change-folder>=INBOX<enter>" "go to inbox" # mw-autogenerated
macro index,pager Mi ";<save-message>=INBOX<enter>" "move mail to inbox" # mw-autogenerated
macro index,pager Ci ";<copy-message>=INBOX<enter>" "copy mail to inbox" # mw-autogenerated
macro index,pager gs "<change-folder>=Sent<enter>" "go to sent" # mw-autogenerated
macro index,pager Ms ";<save-message>=Sent<enter>" "move mail to sent" # mw-autogenerated
macro index,pager Cs ";<copy-message>=Sent<enter>" "copy mail to sent" # mw-autogenerated
macro index,pager gd "<change-folder>=Drafts<enter>" "go to drafts" # mw-autogenerated
macro index,pager Md ";<save-message>=Drafts<enter>" "move mail to drafts" # mw-autogenerated
macro index,pager Cd ";<copy-message>=Drafts<enter>" "copy mail to drafts" # mw-autogenerated
macro index,pager gt "<change-folder>=Trash<enter>" "go to trash" # mw-autogenerated
macro index,pager Mt ";<save-message>=Trash<enter>" "move mail to trash" # mw-autogenerated
macro index,pager Ct ";<copy-message>=Trash<enter>" "copy mail to trash" # mw-autogenerated
macro index,pager gj "<change-folder>=Junk<enter>" "go to junk" # mw-autogenerated
macro index,pager Mj ";<save-message>=Junk<enter>" "move mail to junk" # mw-autogenerated
macro index,pager Cj ";<copy-message>=Junk<enter>" "copy mail to junk" # mw-autogenerated
macro index,pager ga "<change-folder>=Archive<enter>" "go to archive" # mw-autogenerated
macro index,pager Ma ";<save-message>=Archive<enter>" "move mail to archive" # mw-autogenerated
macro index,pager Ca ";<copy-message>=Archive<enter>" "copy mail to archive" # mw-autogenerated

macro index,pager gu "<change-folder>=INBOX.UN<enter>" "go to ukrnet" # mw-autogenerated
macro index,pager Mu ";<save-message>=INBOX.UN<enter>" "move mail to ukrnet" # mw-autogenerated
macro index,pager Cu ";<copy-message>=INBOX.UN<enter>" "copy mail to ukrnet" # mw-autogenerated
macro index,pager gc "<change-folder>=INBOX.CS<enter>" "go to couchsurfing" # mw-autogenerated
macro index,pager Mc ";<save-message>=INBOX.CS<enter>" "move mail to couchsurfing" # mw-autogenerated
macro index,pager Cc ";<copy-message>=INBOX.CS<enter>" "copy mail to couchsurfing" # mw-autogenerated
macro index,pager gw "<change-folder>=INBOX.WS<enter>" "go to warmshowers" # mw-autogenerated
macro index,pager Mw ";<save-message>=INBOX.WS<enter>" "move mail to warmshowers" # mw-autogenerated
macro index,pager Cw ";<copy-message>=INBOX.WS<enter>" "copy mail to warmshowers" # mw-autogenerated
